package com.xucy.springboot.designmodel.structural.brigeconnect.test1;

/**
 * @Author xucy
 * @Date 2019-10-25 15:48
 * @Description
 **/

public class Test {

    public static void main(String[] args) {
        Color color1=new RedColor();
        Color color2=new BlueColor();

        Shape shape1=new SqureShape(color1);
        Shape shape2=new SqureShape(color2);

        shape1.whatIsMyColorAndI();

        shape2.whatIsMyColorAndI();
    }
}
